FROM python:3.12-slim-bullseye

LABEL author="LangJin"
LABEL email="fenyukuang@163.com"

# 设置时区
ENV TZ Asia/Shanghai

# 设置容器内工作目录
WORKDIR /home

# 将当前主机目录全部文件复制至容器工作目录
COPY ./lemon/requirements.txt .

# 安装依赖
RUN pip install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple

# 运行应用
CMD ["python", "main.py", "run", "--env=prod"]

# 暴露端口
EXPOSE 8001
